WarningCode enum Null safety

回调警告码

警告码说明 SDK 内部遇到问题正在尝试恢复。
警告码仅作通知。

Constants

inEchoTestMode → const WarningCode

当前正在进行回路测试,该接口调用无效

const WarningCode(11)
invalidCallForExtAudio → const WarningCode

外部音频源新旧接口混用

const WarningCode(23)
invalidCanvasHandle → const WarningCode

适用于iOS,指定的内部渲染画布句柄无效

const WarningCode(24)
invalidVoicePitch → const WarningCode

设置语音音高不合法

const WarningCode(22)
joinRoomFailed → const WarningCode

进房失败

初次进房或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。
SDK 会自动重试进房。

const WarningCode(1)
noCameraPermission → const WarningCode

摄像头权限异常,当前应用没有获取摄像头权限

const WarningCode(12)
oldRoomBeenReplaced → const WarningCode

相同 roomId 的新房间已替代旧房间

const WarningCode(10)
publishStreamFailed → const WarningCode

发布音视频流失败

当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。
SDK 会自动重试发布。

const WarningCode(2)
publishStreamForbidden → const WarningCode

当调用 RTCRoom.setUserVisibility 将自身可见性设置为 false 后,再尝试发布流会触发此警告

const WarningCode(5)
receiveUserNotifyStop → const WarningCode

当房间内人数超过 500 人时,停止向房间内已有用户发送 RTCRoomEventHandler.onUserJoined 和 RTCRoomEventHandler.onUserLeave 回调,并通过广播提示房间内所有用户

const WarningCode(7)
roomIdAlreadyExist → const WarningCode

同样 roomId 的房间已经存在

const WarningCode(9)
sendCustomMessage → const WarningCode

发送自定义广播消息失败, 本地用户未在房间中

const WarningCode(6)
setScreenAudioSourceTypeFailed → const WarningCode

不支持在 RTCRoom.publishScreen 之后,切换屏幕音频采集源

const WarningCode(20)
setScreenAudioStreamIndexFailed → const WarningCode

不支持在 RTCRoom.publishScreen 之后,调用 RTCVideo.setScreenAudioStreamIndex 设置屏幕音频共享发布类型

const WarningCode(21)
subscribeStreamFailed5xx → const WarningCode

服务器错误导致订阅失败

SDK 会自动重试订阅。

const WarningCode(4)
subscribeStreamFailed404 → const WarningCode

当前房间中找不到订阅的音视频流导致订阅失败

SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。

const WarningCode(3)
unknown → const WarningCode

未知警告码

const WarningCode(0)
userInPublish → const WarningCode

用户已经在其他房间发布过流,或者用户正在发布公共流

const WarningCode(8)
values → const List<WarningCode>

A constant List of the values in this enum, in order of their declaration.

const List<WarningCode>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited